import request from '@/utils/request'

// 查询热词统计列表
export function listWord(query) {
  return request({
    url: '/system/word/list',
    method: 'get',
    params: query
  })
}

// 查询热词统计详细
export function getWord(hotId) {
  return request({
    url: '/system/word/' + hotId,
    method: 'get'
  })
}

// 新增热词统计
export function addWord(data) {
  return request({
    url: '/system/word',
    method: 'post',
    data: data
  })
}

// 修改热词统计
export function updateWord(data) {
  return request({
    url: '/system/word',
    method: 'put',
    data: data
  })
}

// 删除热词统计
export function delWord(hotId) {
  return request({
    url: '/system/word/' + hotId,
    method: 'delete'
  })
}
